//
//  CollectionCell.m
//  UI_segment
//
//  Created by 小伍 on 14-9-17.
//  Copyright (c) 2014年 小伍. All rights reserved.
//

#import "CollectionCell.h"

@implementation CollectionCell
- (void)dealloc
{
//    [_button release];
//    _button = nil;
    [_label release];
    _label = nil;
    [super dealloc];
}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {

        [self creat];
    }
    return self;
}
- (void)creat
{
    _button = [[UIImageView alloc]initWithFrame:CGRectMake(60, 0, 10, 10)];
    [self.contentView addSubview:_button];
    _label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 70, 30)];
    _label.numberOfLines = 0;
    _label.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:_label];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
